<?php
session_start();
header("Content-type: text/html; charset=utf-8");
require_once (FRAMEWORK_PATH . "/class/umeng/notify.php");
require_once (FRAMEWORK_PATH . "/class/db/ez_sql_core.php");
require_once (FRAMEWORK_PATH . "/class/db/ez_sql_mysql.php");
require_once (FRAMEWORK_PATH . "/class/db/ez_results.smarty.php");
//require_once (FRAMEWORK_PATH.  "/class/db/PDOX.php");
//require_once (FRAMEWORK_PATH . "/class/db/DB.php");

define('START_TIME', time());
define('IS_POST', (strtoupper($_SERVER['REQUEST_METHOD']) == 'POST'));
define('IS_API', (stripos($_SERVER['SCRIPT_NAME'], '/api.php') !== false));
define('IS_WAP', (stripos($_SERVER['SCRIPT_NAME'], '/wap.php') !== false));
define('PHP_SELF',  htmlentities(isset($_SERVER['PHP_SELF']) ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']));
define('API_VERSION', '2.0.20180118');
define('API_DEBUG', false);
define('WX_OPEN', false); //必须使用微信打开
define('WX_LOGIN', true); //微信端自动登录
define('WX_REGISTER', true); //微信端进入自动使用open_id注册账号(后期可通过绑定手机完善资料)
define('WX_MINIPROGRAM', true); //微信小程序
define('RSA_POST', false); //POST使用RSA加密传输,具体查看global的form_datas函数
define('WEB_TITLE', '欢创小宝'); //网站标题

//$dbuser, $dbpassword, $dbname
// $db = new ezSQL_mysql('root','9604fbf9d4','huanchuang','120.76.215.147');
$db = new ezSQL_mysql('root','zhangdong','huanchuang','localhost');
$db->query('set names utf8mb4');
//pdox数据库链接
//DB::getInstance()->setConfig('mysql:host=localhost;dbname=stock','root','zhangdong');
//$db = new DBB();
$tbp = 'hq_'; //表名前缀

//域名
$domain = "http://suolan.softstao.com";
$image_domain = "http://bangfang.b0.upaiyun.com";
date_default_timezone_set('Asia/Chongqing');

//百度AK
$baidu_ak = 'iaDZrNldobQVbG7L357j8fIPKxIj8A1i';

//友盟消息推送接口的KEY
$push_ios_app_key = '57eb7c34e0f55a99f2001bc0';
$push_ios_master_secret = 'wgznx7iqmz3hilupvhxwz8i9e89htgeg';
$push_android_app_key = '566518cf67e58e0ed1002d7d';
$push_android_master_secret = 'lwvt6nkhojwmrqs8tilcqn1oxoxn5oer';
$notify = new notify($push_ios_app_key, $push_ios_master_secret, $push_android_app_key, $push_android_master_secret);

//又拍云
$upyun_bucketname = "bangfang";
$upyun_operator_name = "bangfang";
$upyun_operator_pwd = "nQDmzVPt2XW4sx";
$upyun_domain = "http://bangfang.b0.upaiyun.com";

//环信
$easemob_org_name = "";
$easemob_app_name = "";
$easemob_app_key = "";
$easemob_client_id = "";
$easemob_client_secret = "";

//短信
//luosimao
$sms_api_key = '9959c3dfcd38644b55debce0730ed7e6';
$sms_sign = '欢创人力';
//yuntongxun
$sms_accountSid = '8a48b5515018a0f401505ace97627ad6';
$sms_accountToken = 'f38d2777756f4be2aeb84e10fadaa323';
$sms_appId = 'aaf98f8952a0edc90152a49982fc01ed';

//每个ip发送短信间隔,单位秒
$sms_max_ip_time = 12;
